<template>
	<view>
		<uni-navbar :title="'个人中心'"></uni-navbar>
		<!-- 头部 -->
		<div class="toubu">
			<div>
				<image src="../../static/mine/tux.png" mode=""></image>
			</div>
			<div>
				<h3>13560923685</h3>
				<span>CRM管理系统已登录</span>
			</div>
		</div>
		<!-- 个人资料 -->
		<div class="mine-two">
			<div v-for="(item,index) in list" :key="index" @click="tizhu(index)">
				<view class="minto-img">
					<image :src="item.img"></image>
				</view>
				<view class="minto-text">{{item.h5}}</view>
				<view class="minto-tubiao">></view>
			</div>
		</div>
		<tarbar></tarbar>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				list: [{
						img: '../../static/mine/ziliao.png',
						h5: '个人资料',
					},
					{
						img: '../../static/mine/shuji.png',
						h5: '书籍领取',
						url: '/pages/user_mines/mine-lqjl/mine-lqjl'
					},
					{
						img: '../../static/mine/tuicu.png',
						h5: '退出登录',
					}
				]
			};
		},
		methods: {
			tizhu(index) {
				uni.navigateTo({
					url: this.list[index].url
				})
			}
		}
	}
</script>

<style lang="scss">
	page {
		background-color: #f5f5f5;
	}

	.toubu {
		background-color: #fff;
		padding: 40rpx;
		display: flex;
		align-items: center;

		div:nth-child(1) {
			width: 113rpx;
			height: 113rpx;
			border-radius: 50rpx;
			overflow: hidden;

			image {
				width: 100%;
				height: 100%;
			}
		}

		div:nth-child(2) {
			margin-left: 40rpx;

			h3 {
				font-size: 30rpx;
				font-weight: 400;
				color: #4D4D4D;
				line-height: 39rpx;
			}

			span {
				margin-left: 10rpx;
				font-size: 20rpx;
				font-weight: 400;
				color: #B3B3B3;
				line-height: 9rpx;
			}
		}
	}

	.mine-two {
		margin-top: 10rpx;

		div {
			background-color: #fff;
			padding: 30rpx;
			display: flex;
			align-items: center;

			.minto-img {
				width: 32rpx;
				height: 32rpx;

				image {
					width: 100%;
					height: 100%;
				}

				vertical-align: middle;
			}

			.minto-text {
				flex: 1;
				font-size: 24rpx;
				font-weight: 400;
				color: #4D4D4D;
				margin-left: 20rpx;
				// display: inline-block;
			}

			.minto-tubiao {
				width: 20rpx;
				height: 20rpx;
				color: #4e4e4e;
				line-height: 9rpx;
			}
		}

		div:nth-child(3) {
			margin-top: 10rpx;
		}
	}
</style>
